<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class PasswordSetupTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 平台管理员登录信息表
        Schema::create('forget_passwords', function (Blueprint $table) {
            // 表结构
            $table->bigIncrements('id')->comment('自增ID');
            $table->string('code')->comment('登录账号');
            $table->string('newpassword')->comment('新登录密码');
            $table->ipAddress('clientIP')->nullable()->comment('客户端IP');
            $table->string('auditor')->nullable()->comment('审核管理员代码');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('forget_passwords');
    }
}
